const mongoose = require("mongoose");
// 连接数据库
mongoose.connect('mongodb://houtai:password@39.106.40.170:27010/houtai?authSource=houtai')
const conn = mongoose.connection;
conn.on("query", () => {
  console.log("连接成功");
});
conn.on("error", (err) => {
  console.log("连接失败" + err);
});

module.exports = mongoose;
